package com.study.stock.com.study.stock.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description
 * @Author Administrator
 * @Date 2025/8/25 22:53
 */
@RestController
@RequestMapping("/stock")
public class StockController {

    @GetMapping("/stock/{stock}")
    public String stock(@PathVariable Integer stock) {
        System.out.println("进入库存服务");
        System.out.println("扣减库存：" + stock);
        return "减库存成功！";
    }
}
